<?php
// echo '我是GET请求返回的数据';
// echo '<h3 style="color: red">我是GET请求返回的数据</h3>';

//echo <<<'XML'
/*<?xml version="1.0" encoding="UTF-8"?><info>*/
//<name>姓名:Peter Zhu</ name><sex>性别:男</sex>
//<lesson>课程:PHP/前端</lesson><job>职位:全栈讲师</job>
//<work>PHP中文网(www.php.cn)</work></info>
//XML;

 $product = [
     "id"=>"1020" ,
     " name"=>"汽车" ,
     "price"=>120000 ,
     "area"=>"中国"];
  echo json_encode ( $product);